//
//  Earthquake.h
//  iPhoneDev02
//
//  Created by smu on 11-7-18.
//  Copyright 2011年 duk. All rights reserved.
//

#import <Foundation/Foundation.h>


@interface Earthquake : NSObject {
@private
    // Magnitude of the earthquake on the Richter scale.
    CGFloat magnitude;
    // Name of the location of the earthquake.
    NSString *location;
    // Date and time at which the earthquake occurred.
    NSDate *date;
    // Holds the URL to the USGS web page of the earthquake. The application uses this URL to open that page in Safari.
    NSURL *USGSWebLink;
    // Latitude and longitude of the earthquake. These properties are not displayed by the application, but are used to  
    // create a URL for opening the Maps application. They could alternatively be used in conjuction with MapKit 
    // to be shown in a map view.
    double latitude;
    double longitude;
}

@property (nonatomic, assign) CGFloat magnitude;
@property (nonatomic, retain) NSString *location;
@property (nonatomic, retain) NSDate *date;
@property (nonatomic, retain) NSURL *USGSWebLink;
@property (nonatomic, assign) double latitude;
@property (nonatomic, assign) double longitude;

@end
